home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / irit / program.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-30  |  3.5 KB  |  101 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d (not only polygonal) solid modeller.             *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * Main definition Header file for Irit - the 3d (not only polygonal) sm.     *
  7. *****************************************************************************/
  8.  
  9. #ifndef    PROGRAM_H
  10. #define    PROGRAM_H
  11.  
  12. #include <setjmp.h>    /* Used for the long jumps - to main iteration loop. */
  13. #include "irit_sm.h"
  14. #include "cagd_lib.h"       /* We define curves and surfaces handles as well. */
  15. #include "allocate.h"
  16. #include "iritprsr.h"
  17. #include "attribut.h"
  18.  
  19. #define INPUT_LINE_LEN 2500           /* Input parser maximum line length. */
  20.  
  21. #define DEFAULT_LOAD_COLOR 1  /* Default colors for object loaded using LOAD */
  22. #define DEFAULT_BOOL_COLOR 2  /* command, for boolean result objects, for    */
  23. #define DEFAULT_ICRV_COLOR 14 /* boolean intersection curves and for basic   */
  24. #define DEFAULT_PRIM_COLOR 4  /* primitives colors, respectively.         */
  25.  
  26. #define DEFAULT_RESOLUTION    20    /* Used in Primitiv/Boolean modules. */
  27. #define DEFAULT_DRAW_CTLPT    FALSE    /* If control mesh/poly to be drawn. */
  28. #define DEFAULT_INTERCRV    FALSE          /* Return intersection curves? */
  29. #define DEFAULT_ECHOSRC        TRUE                /* Echo sourced program? */
  30. #define DEFAULT_DUMPLVL        1                /* Min. information. */
  31.  
  32. #define MACHINE_MSDOS        1
  33. #define MACHINE_SGI        2
  34. #define MACHINE_HP        3
  35. #define MACHINE_APOLLO        4
  36. #define MACHINE_SUN        5
  37. #define MACHINE_UNIX        6
  38. #define MACHINE_IBMOS2        7
  39. #define MACHINE_IBMNT        8
  40. #define MACHINE_AMIGA        9
  41.  
  42. #define KV_MIN_LEGAL        -9999
  43. #define KV_UNIFORM_OPEN        -10000
  44. #define KV_UNIFORM_FLOAT    -10001
  45.  
  46. extern IPObjectStruct
  47.     *GlblObjList;                   /* All objects on system. */
  48.  
  49. extern jmp_buf
  50.     GlblLongJumpBuffer;                      /* Used in error recovery. */
  51.  
  52. extern FILE
  53.     *GlblLogFile;           /* If do log everything, it goes to here. */
  54.  
  55. extern int
  56. #ifdef DJGCC                        /* Defaults for intr_lib windows. */
  57.     GlblWindowFrameWidth,
  58.     GlblViewFrameColor,
  59.     GlblViewBackColor,
  60.     GlblTransFrameColor,
  61.     GlblTransBackColor,
  62.     GlblStatusFrameColor,
  63.     GlblStatusBackColor,
  64.     GlblInputFrameColor,
  65.     GlblInputBackColor,
  66.     GlblDrawHeader,
  67.     GlblSmoothTextScroll,
  68.     GlblIntrSaveMethod,
  69.     GlblMouseSensitivity,         /* Sensitivity control of mouse device. */
  70.     GlblJoystickExists,
  71. #endif /* DJGCC */
  72.     GlblFatalError,          /* True if disaster in system - must quit! */
  73.     GlblPrintLogFile,             /* If TRUE everything goes to log file. */
  74.     GlblDoGraphics,        /* Control if running in graphics/text mode. */
  75.     GlblLoadColor,          /* Default colors for object loaded using LOAD */
  76.     GlblBoolColor,          /* command, for boolean result objects or      */
  77.     GlblICrvColor,          /* boolean intersection curves and for basic   */
  78.     GlblPrimColor;           /* primitives colors, respectively.         */
  79.  
  80. extern char 
  81. #ifdef DJGCC                 /* Defaults for DJGCC intr_lib windows. */
  82.     *GlblViewWndwPos,
  83.     *GlblTransWndwPos,
  84.     *GlblStatusWndwPos,
  85.     *GlblInputWndwPos,
  86.     *GlblIntrSaveDisk,
  87. #endif /* DJGCC */
  88.     *GlblHelpFileName,
  89.     *GlblStartFileName,            /* Name of startup file to executed. */
  90.     *GlblLogFileName,                    /* Name of log file. */
  91.     *GlblFloatFormat;          /* Controls the ways real numbers are printed. */
  92.  
  93. extern RealType
  94.     GlblPointLen;                   /* Scaler for point if drawn. */
  95.  
  96. void IritExit0(void);
  97. void IritExit(int ExitCode);
  98. void DefaultFPEHandler(int Type);
  99.  
  100. #endif    /* PROGRAM_H */
  101.